home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shadez.swf / scripts / Local / Game / Thing / CEffectMuzzleFlash.as < prev    next >
Encoding:
Text File  |  2011-08-19  |  1.0 KB  |  43 lines

  1. package Local.Game.Thing
  2. {
  3.    import Local.Game.World.CAngle;
  4.    import Local.Game.World.CPosition;
  5.    
  6.    public class CEffectMuzzleFlash extends CEffect
  7.    {
  8.        
  9.       
  10.       public function CEffectMuzzleFlash(param1:Class, param2:CPosition, param3:CPosition)
  11.       {
  12.          super(param2);
  13.          mAngle = CAngle.AsCPosition(param3);
  14.          mType = "muzzleflash";
  15.          AddAnimation(String(param1),param1,"AddSprite_Scale");
  16.          mAnimationFrame = Math.random();
  17.          Process = Process_Normal;
  18.       }
  19.       
  20.       override public function Draw() : void
  21.       {
  22.          super.Draw();
  23.          GetAnimationFrame();
  24.          DrawSprite(GetOrientationMatrix());
  25.       }
  26.       
  27.       public function Process_Normal() : void
  28.       {
  29.          if(true)
  30.          {
  31.             if(mAnimationFrame >= 1)
  32.             {
  33.                if(true)
  34.                {
  35.                   Dispose();
  36.                }
  37.             }
  38.             mAnimationFrame += 1;
  39.          }
  40.       }
  41.    }
  42. }
  43.